package com.ruoyi.livedemo.dto;

import java.time.LocalDate;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class DiaryRequest {

    @NotNull(message = "请选择日记日期")
    private LocalDate entryDate;

    private String title;
    private String weather;
    private String mood;
    private String content;
    private String gratitude;
    private String coverPath;

    @Valid
    private List<DiaryMediaPayload> media;
}
